<?php


namespace App\Http\Controllers;


use App\Models\XxCapitalFlow;

class CapitalsController
{

    public function getCapitals($task_id)
    {
        $capitals = XxCapitalFlow::select('merchant_capital_change',
            'merchant_commission_change', 'uid', 'user_type', 'finance_type',
            'capital_balance', 'commission_balance', 'capital_change', 'commission_change',
            'extra_commission_change', 'referral_change', 'freeze_balance', 'freeze_balance_change',
            'reverse', 'remark', 'create_time')
            ->where('task_id', $task_id)->get();
        return json_encode($capitals);
    }

}
